﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SendSupport.aspx.cs" Inherits="PmSadis.WebFormsUi.SendSupport" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%--<asp:Content ID="sendSupportHead" ContentPlaceHolderID="head" runat="server">
</asp:Content>--%>
<asp:Content ID="sendSupportContent" ContentPlaceHolderID="content" runat="server">
    <dx:ASPxLabel ID="lbSupportTitle" runat="server" AssociatedControlID="tbSupportTitle"
        Text="Заголовок сообщения" />
    <dx:ASPxTextBox ID="tbSupportTitle" runat="server">
        <ValidationSettings ErrorTextPosition="Top">
            <RequiredField IsRequired="true" ErrorText="Введите заголовок сообщения" />
        </ValidationSettings>
    </dx:ASPxTextBox>
    <dx:ASPxLabel ID="lbSupportContent" runat="server" AssociatedControlID="mSupportContent"
        Text="Текст сообщения" />
    <dx:ASPxMemo ID="mSupportContent" runat="server">
        <ValidationSettings ErrorTextPosition="Top">
            <RequiredField IsRequired="true" ErrorText="Введите содержание сообщения" />
        </ValidationSettings>
    </dx:ASPxMemo>
    <dx:ASPxLabel ID="lbSupportEmail" runat="server" AssociatedControlID="tbSupportEmail"
        Text="Адрес отправителя" />
    <dx:ASPxTextBox ID="tbSupportEmail" runat="server">
        <ValidationSettings ErrorTextPosition="Top">
            <RequiredField IsRequired="true" ErrorText="Введите адрес отправителя" />
            <RegularExpression ErrorText="Неверный формат адреса" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
        </ValidationSettings>
    </dx:ASPxTextBox>
    <dx:ASPxLabel ID="lbSupportPhone" runat="server" AssociatedControlID="tbSupportPhone"
        Text="Телефон отправителя (при наличии)" />
    <dx:ASPxTextBox ID="tbSupportPhone" runat="server" />
    <dx:ASPxButton ID="btnSendSupport" runat="server" Text="Отправить" OnClick="btnSendSupport_Click" />
</asp:Content>
